<?php

namespace App\Http\Controller\AdminPort;

use App\Service\PermissionsService;
use Hyperf\Di\Annotation\Inject;

/**
 * 权限
 * @author lihaiping
 */
class Permission
{
    #[Inject]
    protected PermissionsService $permissionsService;

    /**
     * 列表
     * @return array
     */
    public function getListTree()
    {
        $data = $this->permissionsService->getAllTreeList(1);
        return getResponseData('', $data);
    }
}
